package com.wtwd.campus.hxy.constant;

public enum RespCode {
    SUCCESS(0, "成功"),//成功
    FAIL(1, "失败"),//失败
    PARAMS_ERROR(400,"参数错误"),
    DEVICE_OFFLINE(1000,"设备不在线"),
    DEVICE_NO_EXIST(1001,"设备不存在"),
    DEVICE_IS_OFFLINE(1002,"设备离线"),
    DEVICE_WHITE_LIST(1003,"达到白名单上限17条"),
    DEVICE_FAMILY_LIST(1004,"达到白名单上限17条"),
    DEVICE_CLASS_PATTERN_CEILING(1005,"课堂模式达到上限10条"),
    SOS_PHONE_MAXED(1006,"SOS号码数量超出"),
    NO_MESSAGE(1007,"暂无数据"),
    ;
    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
